package com.weipai.education.mapper;

import com.weipai.education.model.ApplicationUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface ApplicationUserMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(ApplicationUser record);

    int insertSelective(ApplicationUser record);

    ApplicationUser selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(ApplicationUser record);

    int updateByPrimaryKey(ApplicationUser record);

    List<Map<String,Object>> applicationUserList(@Param("start") Integer start, 
                                                    @Param("end") Integer size, 
                                                    @Param("userCateId") Integer userCateId, 
                                                    @Param("key") String key,
                                                    @Param("isAudit") String isAudit,
                                                    @Param("userId") String userId);

    Integer applicationUserAmount(@Param("userCateId") Integer userCateId, 
                                     @Param("key") String key,
                                     @Param("isAudit") String isAudit,
                                     @Param("userId") String userId);

}